package tc.jv.task9;

import tc.jv.task4.Vector;
import tc.jv.task7.Vectors;

public class Main
{

	public static void main(String[] args)
	{

		Vector v = Vectors.createInstance();
		try
		{
			v.set(1, 1.0);
		}
		catch (VectorIndexOutOfBondsException e)
		{
			e.printStackTrace();
			System.out.println("Oooops...");
		}
		
		double[] d = new double[] {1., 2.};
		try 
		{
			v.fill(d);
		}
		catch (IncompatibleVectorSizeException e)
		{
			e.printStackTrace();
			System.out.println("Oooops...");
		}
		
	}

}
